from django import forms

from tagging.forms import TagField

from widgets import TokenTextBoxWidget
from models import Entry

class EntryAdminForm(forms.ModelForm):
    tags = TagField(widget=TokenTextBoxWidget(init_function='init_tokentextbox'))

    class Meta:
        model = Entry